package com.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 评论
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-12-05 14:43:15
 */
@Entity
@Data
public class ArticalComment implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * $column.comments
     */
    @Id
    @ApiModelProperty("主键")
    @GeneratedValue(strategy = GenerationType.AUTO)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 内容
     */
    @ApiModelProperty("内容")
    @Column(columnDefinition = "text ")
    private String contents;
    /**
     * $column.comments
     */
    @ApiModelProperty("时间")
    @Column(columnDefinition = "datetime ")
    private Date crDate;

    /**
     * 评论ID
     */
    @ApiModelProperty("评论id")
    @Column(columnDefinition = "varchar(30) ")
    private String sendUser;
    /**
     * 回复id
     */
    @ApiModelProperty("回复id")
    @Column(columnDefinition = "varchar(30) ")
    private String replyUser;
    /**
     * 文章id
     */
    @ApiModelProperty("文章Id")
    @Column(columnDefinition = "bigint ")
    private Long articalId;
    @ApiModelProperty("回复的评论Id,用这个判断是属于哪个一级回复")
    private Long replyId;






  }
